Merge the child-process handling of the save and restore functions into one
authoremellor@ewan <emellor@ewan>
Tue, 4 Oct 2005 16:49:52 +0000 (17:49 +0100)
committeremellor@ewan <emellor@ewan>
Tue, 4 Oct 2005 16:49:52 +0000 (17:49 +0100)
commit2c5923f7a9dff555887ab2390fe1a5daea710c88
treef89b03fa0ef30c2a8e57ca0cff49b749819c6792
parent440e4b259a4a7f934a2ad981369caf7c68ed13be
Merge the child-process handling of the save and restore functions into one
forkHelper function.  Change the handling of file descriptor closure to wait
until both stdout and stderr descriptors have closed.  This may fix the
intermittent bug seen whereby xm restore; xend restart leaves the domain in a
misconfigured state, presumably because IntroduceDomain is not being called by
XendCheckpoint.restore.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xend/XendCheckpoint.py